package com.laowang.project.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.laowang.framework.aspectj.lang.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.util.Date;

/**
 * @Auther laowang
 * @Date 2021/6/23
 * @Description
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class SysUserHotel {

    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /** 后台管理用户id */
    private Long userId;

    /** 酒店id */
    private Long hotelId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd yy:HH:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date created;
}
